<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
	<script src='./js/vue.js'></script>
</head>

<body>
    <div id="app">
        <input type="text" @keydown.enter='handleToKeydown'>
        <input type="text" @keydown.ctrl='handleToKeydown'>
        <input type="text" @keydown.alt='handleToKeydown'>
        <input type="text" @keydown.shift='handleToKeydown'>
        <input type="text" @keydown.ctrl.shift='handleToKeydown'>

        <input type="text" @keydown.65='handleToKeydown'>
        <input type="text" @keypress.65='handleToKeydown'>

    </div>
    
    <script>
        new Vue({
            el: "#app",
            methods: {
                handleToKeydown() {
                    console.log('按下了')
                }
            }
        })
    </script>
</body>

</html>